{% extends "StartGroup/groupHome.html" %}
{% block content %}
    <div class="nobreak discForm">
	{% if permission != 'Non Member' %}
        <div class=" nobreak discFormHeader">
	    <div class="discFormHeaderTitle">Post New Discussion</div>
	</div>
        <form method="POST" action="/connectpeople/{{ group.group_web_address }}/discussion/disc">
	<div class="nobreak clearbreak">
	    <div class="nobreak discFormFieldSection">
	    	<div class="nobreak discFormFieldLine">
		    <div class="nobreak clearbreak"><span class="startStandardRed">* </span><span><strong>{{ create_new_discussion_form.topic.label_tag }}</strong></span></div>
		    <div class="nobreak clearbreak">{{ create_new_discussion_form.topic }}</div>
		    <p>{{ create_new_discussion_form.errors.topic }}</p>
		</div>
	    </div>
	    <div class="nobreak discFormFieldSection">
	    	<div class="nobreak discFormFieldLine">
		    <div class="nobreak clearbreak"><span class="startStandardRed">* </span><span><strong>{{ create_new_discussion_form.topic_desc.label_tag }}</strong></span></div>
		    <div class="nobreak clearbreak">{{ create_new_discussion_form.topic_desc }}</div>
		</div>
	    </div>
	    <div class="nobreak clearbreak postDiscussionButton">
		<input type="submit" value="Post New Discussion"  name='postDiscussion'/>
	    </div>
	</div>
	</form>
	{% else %}
	   Only Group Members can post new discussions. 
	{% endif %}
	
    </div>
{% endblock %}
